Freeze file system model during editing
authorEmmanuele Bassi <ebassi@gnome.org>
Wed, 19 Nov 2014 14:43:10 +0000 (14:43 +0000)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 26 Nov 2014 04:03:27 +0000 (23:03 -0500)
commitcbb2938587dc335de898d9b2347d072a51c408ee
tree297a3548948be77f52b0b2f29203db224694194f
parentd9786d74db9238d480d65adcc030586b710b6043
Freeze file system model during editing

If a file system event arrives while GtkFileChooserWidget is asking the
user to edit the name of a newly created folder, the file system model
will drop the row with the editable cell, and the user will have to
start from scratch.

This makes creating new directories impossible inside a directory with a
file currently being downloaded, for instance, and it's really unhelpful
to the user because the editable row simply disappears.

We already have a mechanism in place to freeze the file system model, so
we can reuse it between the add_editable() and the remove_editable()
calls.

https://bugzilla.gnome.org/show_bug.cgi?id=729927
gtk/gtkfilesystemmodel.c